package nba2kmodtool.util;

import java.io.IOException;

public class FileOperation {

	private static final int IO_BLOCK_SIZE = 1024 * 1024;

	public static void copyFileData(ByteFileReader in, ByteFileReader out) throws IOException {
		byte[] buffer = new byte[IO_BLOCK_SIZE];
		int readCount = 0;
		while ((readCount = in.read(buffer)) != -1) {
			out.write(buffer, 0, readCount);
		}
	}
}
